﻿using System.ComponentModel.DataAnnotations;

namespace Md.Api.Model.Manage.SysPost.Request;
/// <summary>
/// 通过岗位编号更新系统岗位请求实体
/// </summary>
public class RequestUpdateSysPostByPostIdModel : RequestBaseModel
{
    /// <summary>
    /// 岗位ID
    /// </summary>
    public long PostId { get; set; }
    /// <summary>
    /// 岗位编码
    /// </summary>
    [Required(ErrorMessage = "岗位编码不能为空")]
    public string? PostCode { get; set; }
    /// <summary>
    /// 岗位名称
    /// </summary>
    [Required(ErrorMessage = "岗位名称不能为空")]
    public string? PostName { get; set; }
    /// <summary>
    /// 显示顺序
    /// </summary>
    public int PostSort { get; set; }
    /// <summary>
    /// 状态（0正常 1停用）
    /// </summary>
    [Required(ErrorMessage = "岗位状态为空"), StringLength(1, ErrorMessage = "岗位状态长度为1")]
    public string? Status { get; set; }
    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }
}

